Skip to content

Fix NetMHCstabpan mixed-length peptides - #256

Merged
iskandr merged 1 commit into
masterfrom
agent/netmhcstabpan-mixed-lengths
Jul 10, 2026
Merged

Fix NetMHCstabpan mixed-length peptides#256
iskandr merged 1 commit into
masterfrom
agent/netmhcstabpan-mixed-lengths

Conversation

@iskandr

@iskandr iskandr commented Jul 10, 2026

Copy link
Copy Markdown
Contributor

Summary

Fixes #253.

NetMHCstabpan no longer rejects mixed-length peptide inputs in predict_peptides. The wrapper now opts into the existing BaseCommandlinePredictor length-grouping path, matching the behavior already used by other command-line predictors that require same-length batches.

Impact

Callers can pass mixed 8/9/10-mer peptide lists directly to NetMHCstabpan.predict_peptides and predict_peptides_dataframe; mhctools groups the temporary input files by peptide length before invoking the external predictor.

Validation

  • pytest tests/test_netmhc_stabpan.py::test_netmhc_stabpan_groups_mixed_length_peptides -q
  • ./lint.sh
  • ./test.sh (637 passed, 51 skipped, 2 xfailed)

Version

Bumped package version from 3.31.0 to 3.31.1.

@iskandr
iskandr marked this pull request as ready for review July 10, 2026 23:25
@iskandr
iskandr merged commit 53ca40c into master Jul 10, 2026
5 checks passed
@iskandr
iskandr deleted the agent/netmhcstabpan-mixed-lengths branch July 10, 2026 23:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

NetMHCstabpan.predict_peptides raises on mixed-length input; should group by length like NetMHCpan

1 participant